//
//  AAWActor.h
//  AAWGameCore
//
//  Created by David Wagner on 07/07/2009.
//  Copyright 2009 Appaweek. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <OpenGLES/EAGL.h>
#import <OpenGLES/ES1/gl.h>
#import <OpenGLES/ES1/glext.h>
#import "Box2D.h"

#define kColourListSize (4 * 8 /*b2_maxPolyVertices*/)

@class AAWGame;

@interface AAWActor : NSObject {
@private
	GLubyte	red;
	GLubyte	green;
	GLubyte	blue;
	GLubyte	alpha;
	
	b2Body* body;
}

@property (nonatomic) GLubyte red;
@property (nonatomic) GLubyte green;
@property (nonatomic) GLubyte blue;
@property (nonatomic) GLubyte alpha;
@property (nonatomic, readonly) b2Body* body;

- (id)initWithGame:(AAWGame*)game andDefinition:(b2BodyDef*)definition;

- (void)setColourComponents:(GLubyte)redValue green:(GLubyte)greenValue blue:(GLubyte)blueValue alpha:(GLubyte)alphaValue;

- (void)update;

- (void)render;
- (void)renderShapes;
- (void)renderJoints;

@end
